// Array.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
#include "BinarySearch.h"
#include "RemoveElement.h"
#include "SequenceSquare.h"
#include "MinSubArrayLen.h"
#include "SpiralMatrix.h"

int main()
{
    vector<int> nums = { 1, 2, 3, 4, 5, 6, 7, 8 };
    cout << BinarySearchI(nums, 5) << endl;
    cout << BinarySearchII(nums, 5) << endl;

    int slow = RemoveElementWithDoublePointer(nums, 4);

    for (int i = 0; i < slow; i++)
        cout << nums[i] << " ";

    vector<int> nums1 = { -5, 1, 2, 3 };
    vector<int> result = SequenceSquare(nums1);

    vector<int> nums2 = { 2, 3, 1, 2, 4, 3 };
    int result2 = MinSubArrayLen(7, nums2);

    vector<vector<int>> matrix(3, vector<int>(3, 0));
    Dfs(matrix, 0, 0, 1);

}
